|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.Spatial
com.jme3.scene.Node
ga.view.billard.nodes.BillardObjectNode<T>
T
- The generic type of the individuals.public class BillardObjectNode<T extends IAgeIndividual<T>>
Object node the for BillardEvaluationState
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme3.scene.Spatial |
---|
com.jme3.scene.Spatial.BatchHint, com.jme3.scene.Spatial.CullHint |
Field Summary | |
---|---|
private float |
alpha
|
private float |
colorVal
|
private com.jme3.bullet.control.RigidBodyControl |
control
|
private boolean |
fadeIn
|
private boolean |
fadeOut
|
private com.jme3.scene.Geometry |
geometry
|
private T |
individual
|
private float |
relSize
|
Fields inherited from class com.jme3.scene.Node |
---|
children |
Fields inherited from class com.jme3.scene.Spatial |
---|
batchHint, controls, cullHint, frustrumIntersects, key, localLights, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_LIGHTLIST, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldTransform |
Constructor Summary | |
---|---|
BillardObjectNode(com.jme3.asset.AssetManager assetManager,
com.jme3.scene.Geometry s,
T individual)
Instantiates a new billard object node. |
Method Summary | |
---|---|
void |
doFadeIn()
Indicates that the node has been created. |
void |
doFadeOut()
Indicates that the node has beeing destroyed. |
void |
doSelect()
Indicates that the node has been selected. |
com.jme3.scene.Geometry |
getGeometry()
Gets the geometry. |
T |
getIndividual()
Gets the individual. |
boolean |
mustRemove()
Checks if the node should be removed. |
protected void |
setParent(com.jme3.scene.Node parent)
|
java.lang.String |
toString()
|
void |
updateLogicalState(float tpf)
|
void |
updateSizeByAge()
Resizes the node depending on the age. |
Methods inherited from class com.jme3.scene.Node |
---|
attachChild, attachChildAt, breadthFirstTraversal, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLightListRefresh, setLodLevel, setMaterial, setModelBound, setTransformRefresh, swapChildren, updateGeometricState, updateModelBound, updateWorldBound, write |
Methods inherited from class com.jme3.scene.Spatial |
---|
addControl, addLight, breadthFirstTraversal, center, checkCulling, clone, forceRefresh, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, updateWorldLightList, updateWorldTransforms, worldToLocal |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final T extends IAgeIndividual<T> individual
private final com.jme3.scene.Geometry geometry
private float colorVal
private float relSize
private float alpha
private boolean fadeOut
private boolean fadeIn
private final com.jme3.bullet.control.RigidBodyControl control
Constructor Detail |
---|
public BillardObjectNode(com.jme3.asset.AssetManager assetManager, com.jme3.scene.Geometry s, T individual)
assetManager
- the asset managers
- the sindividual
- the individualMethod Detail |
---|
public void updateLogicalState(float tpf)
updateLogicalState
in class com.jme3.scene.Node
protected void setParent(com.jme3.scene.Node parent)
setParent
in class com.jme3.scene.Spatial
public void doSelect()
public void doFadeOut()
public void doFadeIn()
public void updateSizeByAge()
public boolean mustRemove()
true
if the node should be removed.public T getIndividual()
public com.jme3.scene.Geometry getGeometry()
public java.lang.String toString()
toString
in class com.jme3.scene.Spatial
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |